You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Statistics.MeanH Method
Dew Stats for .NET
ContentsIndexHome
Example

Calculate the harmonic mean for given values.

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector a = new Vector(0); a.SetIt(false, new double[] {2,3,5,4}); double MH = Statistics.MeanH(a); // MH = 3.11688311688312 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.